package service.impl;

import mapper.PowerBatteryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.PowerBattery;
import service.PowerBatteryService;

import java.util.List;

@Service
public class PowerBatteryServiceImpl implements PowerBatteryService {
    @Autowired
    private PowerBatteryMapper powerBatteryMapper;

    @Override
    public PowerBattery select(Integer id) {
        return powerBatteryMapper.select(id);
    }

    @Override
    public List<PowerBattery> PowerList() {
        return powerBatteryMapper.PowerList();
    }

    @Override
    public int delete(Integer id) {
        return powerBatteryMapper.delete(id);
    }

    @Override
    public int update(PowerBattery powerBattery) {
        return powerBatteryMapper.update(powerBattery);
    }
}
